<?php $this->_extends('_layouts/default_layout'); ?>

<?php $this->_block('title'); ?>邮件计划管理<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>

<table class=dataTable>
	<thead>
		<tr>
			<th>计划名称</th>
            <th>action</th>
		</tr>
	</thead>
	<tbody>
	<? foreach ($mailPlans as $p): ?>
	<tr tid="<?=$p->id()?>">
        <td><?=$p->name?></td>
		<td align=center>
			<a href="<?=url('/planedit', 'pid/'.$p->id())?>" target="_blank"><img title="编辑" src="<?=$_BASE_DIR?>img/icon/Edit.png" /></a>
            <a href="<?=url('/del', 'pid/'.$p->id())?>"><img title="删除" src="<?=$_BASE_DIR?>img/icon/Delete.png" /></a>
		</td>
	</tr>
	<? endforeach; ?>
	</tbody>
</table>

<?php $this->_endblock(); ?>